/**
 *    Copyright (c) [2022] [中和农信]
 *    rabbit-mq-plus is licensed under Mulan PSL v2.
 *    You can use this software according to the terms and conditions of the Mulan PSL v2.
 *    You may obtain a copy of Mulan PSL v2 at:
 *             http://license.coscl.org.cn/MulanPSL2
 *    THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *    See the Mulan PSL v2 for more details.
 *
 */
package com.cfpamf.athean.rabbit.mq.plus.producer.core;

import com.cfpamf.athean.rabbit.mq.plus.common.exception.RabbitMqPlusException;
import com.cfpamf.athean.rabbit.mq.plus.domain.dto.RabbitMqPlusMessageDTO;

/**
 * 类RabbitMqPlusProducer.java的实现描述：
 *
 * @author Andy（陈洪桥）2022年11月27 02:48
 */
public interface RabbitMqPlusProducer {

    /**
     * 发送事物消息，确保消息投递不丢失
     * 
     * <p>
     * 调用方，需要在事物内最后一行，执行此方法
     * </p>
     * 
     * @param rabbitMqPlusMessageDTO
     * @throws RabbitMqPlusException
     */
    void sendTransactionalMessage(final RabbitMqPlusMessageDTO rabbitMqPlusMessageDTO) throws RabbitMqPlusException;

}
